import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import request from "@/utils/request_tools";

// 加载全局样式：如果是scss需要安装依赖。如果是css直接导入，不需要依赖。
import "@/assets/global.css";

import Vant from "vant";
Vue.use(Vant);

Vue.config.productionTip = false;
// 全局挂载请求函数，通过Vue的原型对象挂载
Vue.prototype.$request = request;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
